package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ResReviewImgMapper;
import com.ruoyi.system.domain.ResReviewImg;
import com.ruoyi.system.service.IResReviewImgService;

/**
 * 餐馆评论图片Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-30
 */
@Service
public class ResReviewImgServiceImpl implements IResReviewImgService 
{
    @Autowired
    private ResReviewImgMapper resReviewImgMapper;

    /**
     * 查询餐馆评论图片
     * 
     * @param imgId 餐馆评论图片主键
     * @return 餐馆评论图片
     */
    @Override
    public ResReviewImg selectResReviewImgByImgId(Long imgId)
    {
        return resReviewImgMapper.selectResReviewImgByImgId(imgId);
    }

    /**
     * 查询餐馆评论图片列表
     * 
     * @param resReviewImg 餐馆评论图片
     * @return 餐馆评论图片
     */
    @Override
    public List<ResReviewImg> selectResReviewImgList(ResReviewImg resReviewImg)
    {
        return resReviewImgMapper.selectResReviewImgList(resReviewImg);
    }

    /**
     * 新增餐馆评论图片
     * 
     * @param resReviewImg 餐馆评论图片
     * @return 结果
     */
    @Override
    public int insertResReviewImg(ResReviewImg resReviewImg)
    {
        return resReviewImgMapper.insertResReviewImg(resReviewImg);
    }

    /**
     * 修改餐馆评论图片
     * 
     * @param resReviewImg 餐馆评论图片
     * @return 结果
     */
    @Override
    public int updateResReviewImg(ResReviewImg resReviewImg)
    {
        return resReviewImgMapper.updateResReviewImg(resReviewImg);
    }

    /**
     * 批量删除餐馆评论图片
     * 
     * @param imgIds 需要删除的餐馆评论图片主键
     * @return 结果
     */
    @Override
    public int deleteResReviewImgByImgIds(Long[] imgIds)
    {
        return resReviewImgMapper.deleteResReviewImgByImgIds(imgIds);
    }

    /**
     * 删除餐馆评论图片信息
     * 
     * @param imgId 餐馆评论图片主键
     * @return 结果
     */
    @Override
    public int deleteResReviewImgByImgId(Long imgId)
    {
        return resReviewImgMapper.deleteResReviewImgByImgId(imgId);
    }
}
